package day13.homework;

import java.io.Serializable;

public abstract class AbstractMessage implements Serializable {
    private double price;

    public AbstractMessage(double price) {
        this.price = price;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    void print() {
        System.out.println("抽象父类");
    }
}
